<template>
  <div>
    <div class="layout-left"><slot name="left"></slot></div>
    <div class="layout-right"><slot name="right"></slot></div>
    <div class="layout-bottom" v-if="isbottom">
      <div class="bottom">
        <slot name="bottom1"></slot>
      </div>
      <div class="bottom">
        <slot name="bottom2"></slot>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  props: {
    active: {
      type: Number,
      default: 0,
    },
  },
  computed: {
    isbottom() {
      return this.active != 2;
    },
  },
  mounted() {},

  methods: {},
};
</script>

<style lang="scss" scoped>
.layout-left {
  width: 28.75rem;
  height: calc(100% - 5rem);
  position: absolute;
  top: 4.375rem;
  left: 0.625rem;
  background: url(~assets/img/sy/left.png) no-repeat;
  background-size: 100% 100%;
  z-index: 123;
}
.layout-right {
  width: 28.75rem;
  height: calc(100% - 5rem);
  position: absolute;
  top: 4.375rem;
  right: 0.625rem;
  background: url(~assets/img/sy/right.png) no-repeat;
  background-size: 100% 100%;
  z-index: 123;
}
.layout-bottom {
  position: absolute;
  bottom: 0.625rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  z-index: 123;
  .bottom {
    width: 26.75rem;
    height: 16.625rem;
    margin: 0 1.25rem;
    background: url(~assets/img/sy/bottom.png) no-repeat;
    background-size: 100% 100%;
  }
}
</style>